package com.sctvcloud.bazhong.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jiongbull.jlog.JLog;
import com.ruihang.generalibrary.ui.adapter.BaseHolderAbsAdapter;
import com.ruihang.generalibrary.ui.adapter.BaseRecylerAdapter;
import com.ruihang.generalibrary.ui.util.OnItemInternalClick;
import com.sctvcloud.bazhong.R;
import com.sctvcloud.bazhong.beans.NewsItem;
import com.sctvcloud.bazhong.ui.adapter.holder.VideoListHolder;
import com.sctvcloud.bazhong.ui.util.IListShowData;

import java.util.List;

/**
 * Created by Administrator on 2017/7/17 0017.
 */

public class VideoListAdapter extends BaseHolderAbsAdapter<NewsItem, VideoListHolder> {
    public VideoListAdapter(Context context, List<NewsItem> list) {
        super(context, list);
    }

    @Override
    public VideoListHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_hot_video_list, parent, false);
        VideoListHolder holder = new VideoListHolder(context, view);
        holder.setInternalClick(this);
        return holder;
    }

    @Override
    public VideoListAdapter setItemInternalClick(OnItemInternalClick itemInternalClick) {
        super.setItemInternalClick(itemInternalClick);
        return this;
    }
}
